#-*- coding: utf-8 -*-
import jenkins
#正式使用jenkins
jenkins_server_url='http://10.10.15.113:30080/'
api_token="yx@2group"
user_id='admin'
server=jenkins.Jenkins(jenkins_server_url, username=user_id, password=api_token)

java_list=["后端job"]
project_name="_lanzhou"
for i in java_list:
   print(i)
   server.copy_job(i,i+"_lanzhou")
   print(i+"_preview任务创建成功")
front_list=["前端job"]
for i in java_list:
   print(i)
   server.copy_job(i,i+"_lanzhou")
   print(i+"_preview任务创建成功")
